package com.yingma.common.controller;

import com.yingma.common.util.AjaxResult;
import com.yingma.system.entity.JcFeeType;
import com.yingma.system.service.JcFeeTypeService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (JcFeeType)表控制层
 *
 * @author makejava
 * @since 2020-04-03 22:23:28
 */
@RestController
@RequestMapping("jcFeeType")
public class JcFeeTypeController {
    /**
     * 服务对象
     */
    @Resource
    private JcFeeTypeService jcFeeTypeService;

    /**
     * 根据条件查询费用类型列表
     * @param name
     * @param code
     * @param pageNum
     * @param pageSize
     * @return
     */
    @ApiOperation("查询费用类型列表")
    @PostMapping("searchFeeType")
    public AjaxResult selectOne(String name, String code, Integer pageNum, Integer pageSize) {
       List<JcFeeType> list= jcFeeTypeService.searchbycondition(name, code, pageNum, pageSize);
        return AjaxResult.success(list);
    }

}
